package br.project.cdd.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conexao {

	Connection conexao;
	
	public Conexao() throws ClassNotFoundException, SQLException
	{
		String driver = "com.mysql.jdbc.Driver";
		String url = "jdbc:mysql://localhost:3306/cdd_database";
		String nome = "root";
		
		Class.forName(driver);
		
		conexao = DriverManager.getConnection(url, nome, null);		
	}	
}
